Functions
Reading and Writing to Registers

Includes APIs for getting and setting camera register data by register address. More...

Functions

def MV_CC_ReadMemory (self, pBuffer, nAddress, nLength)
 Reads data from device register. More...
 
def MV_CC_WriteMemory (self, pBuffer, nAddress, nLength)
 Writes data into device register. More...
 

Detailed Description

Includes APIs for getting and setting camera register data by register address.

Function Documentation

◆ MV_CC_ReadMemory()

def MvCameraControl_class.MV_CC_ReadMemory (   self,
  pBuffer,
  nAddress,
  nLength 
)

Reads data from device register.

Parameters
handle[IN] It refers to device handle / frame grabber handle.
pBuffer[IN][OUT] It refers to the data buffer for saving memory value that is read (GigE Vision device memory value is stored based on big-endian mode, and memory value of other devices is stored based on little-endian mode).
nAddress[IN] It refers to the memory address to be read. It can be acquired from Camera.xml file, in a form similar to XML node value of xxx_RegAddr.
nLength[IN] It refers to the length of memory to be read.
Returns
Returns MV_OK for success, and returns corresponding Error Code for failure.
Remarks
Read the data from certain register of the device.

◆ MV_CC_WriteMemory()

def MvCameraControl_class.MV_CC_WriteMemory (   self,
  pBuffer,
  nAddress,
  nLength 
)

Writes data into device register.

Parameters
handle[IN] It refers to device handle / frame grabber handle.
pBuffer[IN] It refers to memory value to be written (GigE Vision device memory value is stored based on big-endian mode, and memory value of other devices is stored based on little-endian mode).
pBuffer[IN] It refers to the memory address to be written to. It can be acquired from Camera.xml file, in a form similar to XML node value of xxx_RegAddr.
nLength[IN] It refers to the length of memory to be written to.
Returns
Returns MV_OK for success, and returns corresponding Error Code for failure.
Remarks
Accesses device and writes a piece of data into a certain segment of the register.